#include "IShape.h"

IShape::IShape() : m_localOffset(btQuaternion(0,0,0,1))
{
}

Pointer<btCollisionShape>& IShape::getShape()
{
	return m_bulletShape;
}

void IShape::setOffset( Maths::Vector3D& offset, Maths::Quaternion& rotation )
{
	m_localOffset = btTransform(btQuaternion(rotation.X(), rotation.Y(), rotation.Z(), rotation.W()),
								btVector3(offset.X(), offset.Y(), offset.Z()));
}

btTransform& IShape::getLocalOffset()
{
	return m_localOffset;
}